<% form_tag(:method=>'post', :action => :displayresource) do %>
<h1> <%= RootCategory.find(session[:selectedroot]).name %>  </h1>
<p> <%= RootCategory.find(session[:selectedroot]).description %>  </p>
<hr/>
<h2> <%= Category.find(session[:selectedCategory]).name %>  </h2>
<p> <%= Category.find(session[:selectedCategory]).description %>  </p>
  <p>
  
    Select the resource:
    <select name="selectedresource">
	   <%= options_from_collection_for_select @resources, "id", "name" %>
    </select>
  </p>  

  <p>
	   <%= submit_tag 'Next >' %>
  </p>
<% end %>

<div id="sidebar" style="float: right; width: 180px;line-height: 18px;">
	<p>
	  <%= link_to 'New wiki page', new_resource_path %>
	</p>
	<p>
	  Edit
	</p>
	<p>
	  Remove
	</p>
</div>
